/*
Copyright (C) 2011  João Dias de Carvalho Neto

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

import br.com.mysm.components.InfoBox.InfoBox;
import br.com.mysm.components.LoginWindow.LoginWindow;
import flash.net.URLRequest;
import mx.managers.PopUpManager;
private var infobox : InfoBox;

/**
 *Callback dispatched when the moduleLoader is ready to work 
 */
private function onModuleFinishLoad():void
{
	PopUpManager.removePopUp(this.infobox);
}

/**
 *Callback dispatched when the moduleLoader starts to load a module 
 */
private function onModuleStartLoad():void
{
	this.infobox = new InfoBox();
	PopUpManager.addPopUp(this.infobox,this,true);
	PopUpManager.centerPopUp(this.infobox);
}

private var loginWindow : LoginWindow;

/**
 *Callback dispatched when the main application creation complete 
 */
private function onCreationComplete():void
{
	//LoginWindow PopUp
	this.loginWindow = new LoginWindow();
	PopUpManager.addPopUp(this.loginWindow,this,true);
	PopUpManager.centerPopUp(this.loginWindow);
}
